﻿using System;
using System.Collections.Generic;
using System.Text;
using AsPlugInManager;
using AsLib;

namespace NNLInterface
{
    public class ASinterFace
    {

        /// <summary>
        /// 取得工程下的用户名称
        /// </summary>
        /// <param name="argList"></param>
        /// <returns></returns>
        public static string  GetLogOnUser(IASPArgList argList)
        {
            AsLib.ASBProject proj;
            proj = (ASBProject)argList.get_ArgAsObject(TArgTypeAsObject.kArgProject);

            //取得所对应的属性ID
            int ProjectUser_ULUSER = Convert.ToInt32(common.RWLang.ReadTextFile("PropertyID", "ProjectUser_ULUSER"));
            string strUserID = proj.GetAsStr((TPropertyID)ProjectUser_ULUSER, 1);
            return strUserID;
        }
    }
}
